home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
017
/
dial.bat
< prev
next >
Wrap
DOS Batch File
|
1984-01-09
|
2KB
|
49 lines
bat cls
bat begtype
Dialing driver for PC-TALK. Format: Dial # R (R=repeatedly)
end
bat if .%1 = . call -getnumber | * if not passed, get dialing info
bat %3 = %1 # | * get length of string
bat if %3 < 3 call -validate | * if menu #, validate
bat * insert into keyboard stack a carriage return, line feed, alt-D
bat begstack
\00\20;
end
bat if %3 > 2 stack M | skip 2 | * if special #, insert M
bat %4 = %1 - 1| %4 = %4 / 15 | * else calculate # menus to jump
bat call -getmenu | * position on right menu
bat stack %1 | * insert # to dial
bat if %2 = R call -rptmode | * if requested, put in repeat dial mode
PC-TALK
bat exit | * exit to DOS after exit PC-TALK
bat **** subroutines ***
bat -getnumber
bat type | read Please enter # to dial: %1
bat type | inkey DIAL R(epeatedly until answered)...1(time)=<Rtn> (R,1): %2
bat -chk if %2 <> KEY00D if %2 <> R if %2 <> 1 beep|inkey %2| goto -chk
bat if %2 = KEY00D %2 = 1
bat type %2
bat return
bat -validate
bat if %1 > 0 if %1 < 61 return
bat cls beep type your entry of %1 is an
bat read . INVALID menu #: please RE-ENTER (1-60): %1
bat goto -validate
bat -getmenu
bat if %4 < 1 return
bat %4 = %4 - 1
bat stack F
bat goto -getmenu
bat -rptmode
bat * insert slight delay, K to stop dial, alt-Q to make repeat
bat begstack
\ff\02K\00\10;
end
bat return